package com.niit.PublicClass;

import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class getSimpleQuotationInfo {
    public ArrayList<String> getInfo(String str){
        Pattern pattern= Pattern.compile("'(.*?)'");
        Matcher m = pattern.matcher(str);
        ArrayList<String> list = new ArrayList<String>();
        while (m.find()) {
            list.add(((Matcher) m).group().trim().replace("'","")+" ");
        }
        for (String s : list) {
            System.out.println(s);
        }
        return list;
    }

}
